checkTouchSlop

open fun checkTouchSlop(directions: Int): Boolean(source)

Check if any pointer tracked in the current gesture has crossed the required slop threshold.

This depends on internal state populated by shouldInterceptTouchEvent or processTouchEvent. You should only rely on the results of this method after all currently available touch data has been provided to one of these two methods.

Return

true if the slop threshold has been crossed, false otherwise

Parameters

directions

Combination of direction flags, see DIRECTION_HORIZONTAL, DIRECTION_VERTICAL, DIRECTION_ALL


open fun checkTouchSlop(directions: Int, pointerId: Int): Boolean(source)

Check if the specified pointer tracked in the current gesture has crossed the required slop threshold.

This depends on internal state populated by shouldInterceptTouchEvent or processTouchEvent. You should only rely on the results of this method after all currently available touch data has been provided to one of these two methods.

Return

true if the slop threshold has been crossed, false otherwise

Parameters

directions

Combination of direction flags, see DIRECTION_HORIZONTAL, DIRECTION_VERTICAL, DIRECTION_ALL

pointerId

ID of the pointer to slop check as specified by MotionEvent